package com.liang.design.event;

import com.liang.design.Result;
import com.liang.design.State;
import org.itstack.demo.design.ActivityService;
import org.itstack.demo.design.Status;

/**
 * @author lsm
 * @ClassName EditingState.java
 * @Description TODO
 * @createTime 2023年12月05日 22:21:00
 */
public class EditingState extends State {
    public Result arraignment(String activityId, Enum<Status> currentStatus) {
        ActivityService.execStatus(activityId, currentStatus, Status.Check);
        return new Result("0000", "活动提审成功");
    }
    public Result checkPass(String activityId, Enum<Status> currentStatus)
    {
        return new Result("0001", "编辑中不不可审核通过");
    }
    public Result checkRefuse(String activityId, Enum<Status> currentStatus) {
        return new Result("0001", "编辑中不不可审核拒绝");
    }

    @Override
    public Result checkRevoke(String activityId, Enum<Status>
            currentStatus) {
        return new Result("0001", "编辑中不不可撤销审核");
    }
    public Result close(String activityId, Enum<Status> currentStatus) {
        ActivityService.execStatus(activityId, currentStatus,
                Status.Close);
        return new Result("0000", "活动关闭成功");
    }
    public Result open(String activityId, Enum<Status> currentStatus) {
        return new Result("0001", "⾮非关闭活动不不可开启");
    }
    public Result doing(String activityId, Enum<Status> currentStatus) {
        return new Result("0001", "编辑中活动不不可执⾏行行活动中变更更");
    }
}
